package com.zzyl.mapper;

import com.zzyl.entity.UserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoleMapper {

    @Select("select * from sys_user_role where role_id = #{roleId}")
    List<UserRole> selectByRoleId(Long roleId);
    void insertBatch(List<UserRole> userRoles);

    @Delete("delete from zzyl.sys_user_role where user_id = #{id} ")
    void deleteByUserId(Long id);


}